import java.util.Scanner;

/**
 * 例题：输入一个数字，将该数反过来输出（如：输入12345  输出54321）
 */
public class Demo08 {

    public static void main(String[] args) {

        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入一个数字：");

        int num = scanner.nextInt();

        while (num > 0){
            System.out.print(num % 10);
            num = num / 10;
        }
    }
}
